package com.webBasic.controller;

import com.webBasic.service.StudentService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * @author 王凯飞
 * @date:2019/10/29 页面
 */
@Controller
@RequestMapping("/page")
public class PageController extends BaseController {

    @Resource
    StudentService studentService;

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index(ModelMap modelMap) {
        return "student/student";
    }




    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login() {
        return "user/login";
    }
}
